home *** CD-ROM | disk | FTP | other *** search
- class com.mosesSupposes.fuse.penner_easing.Quint
- {
- function Quint()
- {
- }
- static function easeIn(t, b, c, d)
- {
- return c * (t /= d) * t * t * t * t + b;
- }
- static function easeOut(t, b, c, d)
- {
- return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
- }
- static function easeInOut(t, b, c, d)
- {
- if((t /= d / 2) < 1)
- {
- return c / 2 * t * t * t * t * t + b;
- }
- return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
- }
- static function easeOutIn(t, b, c, d)
- {
- t /= d / 2;
- return c / 2 * ((t = t - 1) * t * t * t * t + 1) + b;
- }
- }
-